Very new to pagerduty. My question is , when creating a new incident in pagerduty , how I can see that incident in servicenowand vice versa?
Creating incidents
Hi Sonita!
Thanks for reaching out to us here in the PagerDuty Community.
Have you had a chance to integrate ServiceNow with your PagerDuty account? Hereās some documentation on our integration:
Please let us know if you have any questions!
Nick
Hi Nick ,
Thanks for your message. Yes We have integrated servicenow with pager duty. My question is how I can create an test incident in pagerduty and see that in servicenow and vice versa?
Hello Sonita,
If the integration has been created by following the Guide: This would mean Users have been created, Assignment Group in Servicenow provisioned and the relevant REST API Key in place;
From the service linked to Servicenow in PagerDuty, you should be able to trigger an Incident and it will create an Incident in ServiceNow.
You would need to confirm both tools are communicating. I hope this helps
Chiedu
Itās working perfectly
Sounds great, Sonita! Please let us know if you have any other questions!
How can we map the information in the details section of an incident in pagerDuty to Description field in incident in servicenow?
You can achieve this by creating a new PagerDuty Inbound Field rule
using the Webhook payload from incident.trigger tab here(https://v2.developer.pagerduty.com/docs/webhooks-v2-overview#incident-details).
I hope that helps.
Thanks for your help , actually Iām trying to achieve the following request as well:
When creating an incident in pagerDuty , the associated incident in serviceNow should have the following fields to be populated:
Caller - have the user populate (PagerDuty)
- Affected User - PagerDuty
Phone 444444455----> we change this - Location - San Diego
Contact type - Monitoring - Category - PagerDuty
- Subcategory - PagerDuty
- Short description - come from PagerDuty alert titleā> this is working
- Description - fill in from Details section from PagerDuty alert
Opened - Use time of ticket creation
Opened by - PagerDuty
State - Active / and close when closed via PagerDuty
Urgency - 2 - Medium
Impact - 2 - Medium
Priority - Medium
Assignment group ā Production
Iād appreciate your help!
Hi Sonita,
We have a ServiceNow guide that will help you go over the basic inbound field rules set up, as well as setting based on the payload.
Here is a link to the documentation.
Note there also is a feature to test your new inbound field rule to view which values your inbound field rule will return.
As Cheidu mentioned, there is a sample payload of a webhook available here.
Please take a look at the documentation and let us know if you have any further questions!
Cheers,
Hi Jay ,
Thank you so much for your help. Actually this is working perfectly for the string type fields like contact type . But for reference fields , it doesnāt work . for example for location field , I wanted that āSan Digeoā be populated , but it doesnāt workā¦
Itās hard to say without looking at your instance, but I noticed a typo (San Digeo
) - I assume that this is just a typo in this post and it is spelled correctly in your instance, but I wanted to point it out just in case that is the issue.
Since this is a very intricate integration, it is helpful for us to have logs to troubleshoot and see what is going on behind the scenes. Here are instructions in our Knowledge Base on turning on verbose logging in ServiceNow.
Once this is turned on, you can recreate the issue you are seeing and then follow these steps to get these logs and send them to us here at PagerDuty support (support@pagerduty.com):
- Navigate to PagerDuty ā Support ā Logs
- Make sure you set the view to 100 per page. You can CTRL+F the incident IDās to be sure that the log contains those details.
- Copy and paste everything into a CSV (preferred) or text file
Thank you so much for your help.
Actually Iām trying to map the 'Description field ā in the PagerDuty with the Description field in service Now ,
But it doesnāt workā¦
Your help would be much appreciatedā¦
Hi @sonita,
This would only work for web-triggered incidents, but one could make an inbound field rule for when the channel type is website
in the trigger log entry. See: Retrieve Incident Details Using the API: The channel property of log entries, and Getting custom details through v2 webhooks
Thank you so much!
Still , The description field on pager duty doesnāt show in service now although I did the following:
I think _raw
is not a property that is actually present in the channel details property. What I recommend is to reconcile your inbound field rule with a few incident.trigger
inbound webhooks in Webhook Import Rows, to make sure that it is applicable to the expected structure. Mind you, that structure is not static or immutable.
- Filter for webhooks that have message type
incident.trigger
. - Look in the
payload
property.
Actually Iām very new to PagerDuty ! So you suggest I write ālog_entries.channel.detailsā this in the webhook payload field?
not sure how I can do these:
- Filter for webhooks that have message type
incident.trigger
. - Look in the
payload
property.
Actually this is working! log_entries.channel.details
Thanks a lot!
Can we map pagerduty incident id in servicenow with the incident number in pager duty?